<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../../Themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../../../Themes/icon.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/demo.css">
		<script type="text/javascript" src="../../../JS/jquery.min.js"></script>
		<script type="text/javascript" src="../../../JS/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../../../JS/common.js"></script>
		<script type="text/javascript" src="../../../JS/searchCommon.js"></script>
	</head>

	<body style="padding: 0px;">

	</body>
	<script type="text/javascript">
		var testSearch = new searchCommon("测试搜索"); //创建search界面对象
		//		//		testSearch.name = "测试搜索";
		testSearch.addEasyUILayout(); //初始化easyui-layout布局
		//		
		//		//添加搜索条件
		//		testSearch.addSearchCondition({
		//			_title: "测试搜索条件1",
		//			_class: "easyui-combobox",
		//			_name: "INTERNAL_NAME",
		//			_id: "test",
		//			_dataoptions:"panelHeight:\"100px\""
		//		});
		//		
		//		//添加list
		//		testSearch.addListCondition({
		//			_title:"合同信息",
		//			_src:"../BIContract/BIContractList.html",
		//			_style:"width: 100%;height: 350px;"
		//		});
		//		
		

		//..................................................................JSON文件测试
		var searchPanel = [{
			"searchCondition": [{
				"_title": "测试搜索条件1",
				"_class": "easyui-combobox",
				"_name": "INTERNAL_NAME",
				"_id": "test",
				"_dataoptions": "panelHeight:\"100px\""
			}],
			"listContent": [{
				"_title": "合同信息",
				"_src": "../BIContract/BIContractList.html",
				"_style": "width: 100%;height: 350px;"
			}]
		}];

		testSearch.constructBoundary(searchPanel);
		
		$('#test').combobox({
			valueField: 'INTERNAL_NAME',
			textField: 'INTERNAL_NAME',
			onChange: function(newValue, oldValue) {
				if(newValue != "" && newValue != undefined) {
					var url = RemoteLinkAddress + "/logistics/internaltrade/findbypinyin?PINYINFIELDNAME=" + newValue.trim();
					$(this).combobox("reload", url);
				}
			}
		});
		console.log(searchPanel);
	</script>

</html>